#include<stdio.h>
#include<time.h>
int main()
{

    int s[5][5]={};
    int i,a,b;
    srand(time(NULL));
    for(a=0;a<5;a++){
        for(b=0;b<5;b++){
            s[a][b]=rand()%100;
            printf("%2d  ",s[a][b]);
        }
    printf("\n");
    }
    printf("************\n");

    for(a=0;a<5;a++){
        for(b=a;b<5;b++){
            i=s[a][b];
            s[a][b]=s[b][a];
            s[b][a]=i;
        }
    }
    for(a=0;a<5;a++){
        for(b=0;b<5;b++){
            printf("%2d  ",s[a][b]);
        }
    printf("\n");
    }
}
